﻿using System.Linq;
using MongoDB.Bson;

namespace Yamfinder.Data
{
    public interface IDataDictonaryRepository
    {
        IQueryable<DataDictonaryEntry> Query();
        DataDictonaryEntry Get(ObjectId id);
        DataDictonaryEntry Get(string fieldName);
        void Insert(DataDictonaryEntry entry);
        void Save(DataDictonaryEntry entry);
        void Remove(ObjectId id);
        void Remove(string fieldName);
    }
}